Optimal. Leaf size=101 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}-\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}-\sqrt{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}+\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}+\sqrt{b}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.115908, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {3209, 1166, 205} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}-\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}-\sqrt{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}+\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}+\sqrt{b}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3209
Rule 1166
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{a-b \cos ^4(x)} \, dx &=-\operatorname{Subst}\left (\int \frac{1+x^2}{a+2 a x^2+(a-b) x^4} \, dx,x,\cot (x)\right )\\ &=-\left (\frac{1}{2} \left (1-\frac{\sqrt{b}}{\sqrt{a}}\right ) \operatorname{Subst}\left (\int \frac{1}{a-\sqrt{a} \sqrt{b}+(a-b) x^2} \, dx,x,\cot (x)\right )\right )-\frac{1}{2} \left (1+\frac{\sqrt{b}}{\sqrt{a}}\right ) \operatorname{Subst}\left (\int \frac{1}{a+\sqrt{a} \sqrt{b}+(a-b) x^2} \, dx,x,\cot (x)\right )\\ &=-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}-\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}-\sqrt{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt{a}+\sqrt{b}} \cot (x)}{\sqrt [4]{a}}\right )}{2 a^{3/4} \sqrt{\sqrt{a}+\sqrt{b}}}\\ \end{align*}
Mathematica [A] time = 0.188843, size = 109, normalized size = 1.08 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{a} \tan (x)}{\sqrt{\sqrt{a} \sqrt{b}+a}}\right )}{2 \sqrt{a} \sqrt{\sqrt{a} \sqrt{b}+a}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a} \tan (x)}{\sqrt{\sqrt{a} \sqrt{b}-a}}\right )}{2 \sqrt{a} \sqrt{\sqrt{a} \sqrt{b}-a}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.035, size = 64, normalized size = 0.6 \begin{align*} -{\frac{1}{2}{\it Artanh} \left ({a\tan \left ( x \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}-a \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}-a \right ) a}}}}+{\frac{1}{2}\arctan \left ({a\tan \left ( x \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}+a \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}+a \right ) a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{1}{b \cos \left (x\right )^{4} - a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.52538, size = 1774, normalized size = 17.56 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]